package user

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/api/user"
	"go-interview-forum/middleware"
)

func Router(g *gin.Engine) {
	r := g.Group("user")

	r.Use(middleware.TokenAuth)
	r.POST("info", user.GetUserInfo)
	r.POST("update/info", user.UpdateUserInfo)
}
